home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Utilities Professional 1-1500
/
Utilities Professional 1-1500 (1994)(WPD)[!].iso
/
12511500
/
var1432.dms
/
var1432.adf
/
NDUK-V40.lha
/
V40
/
include
/
prefs
/
printertxt.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-15
|
3KB
|
104 lines
#ifndef PREFS_PRINTERTXT_H
#define PREFS_PRINTERTXT_H
/*
** $VER: printertxt.h 38.2 (1.7.91)
** Includes Release 40.15
**
** File format for text printer preferences
**
** (C) Copyright 1991-1993 Commodore-Amiga, Inc.
** All Rights Reserved
*/
/*****************************************************************************/
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef LIBRARIES_IFFPARSE_H
#include <libraries/iffparse.h>
#endif
/*****************************************************************************/
#define ID_PTXT MAKE_ID('P','T','X','T')
#define ID_PUNT MAKE_ID('P','U','N','T')
#define DRIVERNAMESIZE 30 /* Filename size */
#define DEVICENAMESIZE 32 /* .device name size */
struct PrinterTxtPrefs
{
LONG pt_Reserved[4]; /* System reserved */
UBYTE pt_Driver[DRIVERNAMESIZE]; /* printer driver filename */
UBYTE pt_Port; /* printer port connection */
UWORD pt_PaperType;
UWORD pt_PaperSize;
UWORD pt_PaperLength; /* Paper length in # of lines */
UWORD pt_Pitch;
UWORD pt_Spacing;
UWORD pt_LeftMargin; /* Left margin */
UWORD pt_RightMargin; /* Right margin */
UWORD pt_Quality;
};
/* constants for PrinterTxtPrefs.pt_Port */
#define PP_PARALLEL 0
#define PP_SERIAL 1
/* constants for PrinterTxtPrefs.pt_PaperType */
#define PT_FANFOLD 0
#define PT_SINGLE 1
/* constants for PrinterTxtPrefs.pt_PaperSize */
#define PS_US_LETTER 0
#define PS_US_LEGAL 1
#define PS_N_TRACTOR 2
#define PS_W_TRACTOR 3
#define PS_CUSTOM 4
#define PS_EURO_A0 5 /* European size A0: 841 x 1189 */
#define PS_EURO_A1 6 /* European size A1: 594 x 841 */
#define PS_EURO_A2 7 /* European size A2: 420 x 594 */
#define PS_EURO_A3 8 /* European size A3: 297 x 420 */
#define PS_EURO_A4 9 /* European size A4: 210 x 297 */
#define PS_EURO_A5 10 /* European size A5: 148 x 210 */
#define PS_EURO_A6 11 /* European size A6: 105 x 148 */
#define PS_EURO_A7 12 /* European size A7: 74 x 105 */
#define PS_EURO_A8 13 /* European size A8: 52 x 74 */
/* constants for PrinterTxtPrefs.pt_PrintPitch */
#define PP_PICA 0
#define PP_ELITE 1
#define PP_FINE 2
/* constants for PrinterTxtPrefs.pt_PrintSpacing */
#define PS_SIX_LPI 0
#define PS_EIGHT_LPI 1
/* constants for PrinterTxtPrefs.pt_PrintQuality */
#define PQ_DRAFT 0
#define PQ_LETTER 1
struct PrinterUnitPrefs
{
LONG pu_Reserved[4]; /* System reserved */
LONG pu_UnitNum; /* Unit number for OpenDevice() */
ULONG pu_OpenDeviceFlags; /* Flags for OpenDevice() */
UBYTE pu_DeviceName[DEVICENAMESIZE]; /* Name for OpenDevice() */
};
/*****************************************************************************/
#endif /* PREFS_PRINTERTXT_H */